package com.ang;

import cn.hutool.core.util.HexUtil;
import com.alibaba.fastjson.JSON;
import org.apache.tomcat.util.buf.HexUtils;

public class Test03 {
    public static void main(String[] args) {
        Test03 t = new Test03();
        t.test01();
    }

    public void test01(){
        String str = "C5D88A8771F9F946BF8C8D4B86FCF03BB31917FD6A932F8504CC9E914B67BEA3";

        byte[] strByteArr = str.getBytes();
        System.out.println(JSON.toJSONString(strByteArr));
        System.out.println(new String(strByteArr));

        String hexStr = HexUtil.encodeHexStr(strByteArr);
        System.out.println(hexStr);
        System.out.println(JSON.toJSONString(HexUtil.decodeHex(hexStr)));

        System.out.println(HexUtil.decodeHexStr(hexStr));
//        System.out.println(HexUtil);
    }
}
